//
//  InvitationDetailsTableViewCell.m
//  XiangMuB
//
//  Created by 向修根 on 16/8/22.
//  Copyright © 2016年 lanou3g. All rights reserved.
//

#import "InvitationDetailsTableViewCell.h"
#import "invitationDetailModel.h"
#import <UIImageView+WebCache.h>

@implementation InvitationDetailsTableViewCell

- (void)layoutSubviews{
    [super layoutSubviews];
    self.v.text = self.model.v;
    self.b.text = self.model.b;
    self.n.text = self.model.n;
    [self.timg sd_setImageWithURL:[NSURL URLWithString:self.model.timg] placeholderImage:nil];
    //    弧度
    self.cellView.layer.cornerRadius = self.cellView.frame.size.width /50;
    self.cellView.layer.masksToBounds = YES;
    
    //   cell边框
    self.cellView.layer.borderWidth = 2;
    self.cellView.layer.borderColor = [[UIColor colorWithRed:192.0f/255.0f  green:192.0f/255.0f  blue:192.0f/255.0f  alpha:0.7]CGColor];
    
//    图片切圆
    self.timg.layer.cornerRadius = self.timg.frame.size.width / 2;
    self.timg.layer.masksToBounds = YES;
    
}


- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
